package cn.knet.sp.ncrm.modules.customer.importsupport;

import cn.knet.sp.ncrm.modules.customer.potentialcustomer.entity.PotentialCustomer;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.hibernate.validator.constraints.Length;

import java.util.Date;

/**
 * @INFO: 添加导入用户VO类
 * @Author: shishouyang
 * @Time: 2015/8/27 17:50
 */
public class ImportVO extends PotentialCustomer {

    /**
     * PotentialCustomer表 继承自 PotentialCustomer
     */

    /**
     * 　PotentialCustomerAddinfo表
     */
    private String potentialCustomerId;        // 主数据ID
    private String corporationScale;        // 公司规模
    private Date corporationCreateDate;        // 公司成立时间
    private String corporationCorporateName;        // 公司法人名称
    private String corporationCorporateSex;        // 公司法人性别
    private String corporationFax;        // 公司传真
    private String corporationIntroduction;        // 公司介绍
    private String corporationBusinessModel;        // 公司经营模式
    private String corporationRegisterFunds;        // 公司注册资金
    private String corporationRegisterAddress;        // 公司注册地址
    private String corporationStaffNum;        // 公司员工人数
    private String corporationQualitySystem;        // 公司质量体系
    private String corporationEnterpriseType;        // 公司企业类型

    /**
     * 省市名称
     * @return
     */

    private String provinceName;        // 省市名称

    @Length (min = 0, max = 32, message = "主数据ID长度必须介于 0 和 32 之间")
    public String getPotentialCustomerId() {
        return potentialCustomerId;
    }

    public void setPotentialCustomerId(String potentialCustomerId) {
        this.potentialCustomerId = potentialCustomerId;
    }

    @Length (min = 0, max = 50, message = "公司规模长度必须介于 0 和 50 之间")
    public String getCorporationScale() {
        return corporationScale;
    }

    public void setCorporationScale(String corporationScale) {
        if(null!=corporationScale&&corporationScale.length()>50){
            this.corporationScale = corporationScale.substring(0,50);
        }else{
            this.corporationScale = corporationScale;
        }
    }

    @JsonFormat (pattern = "yyyy-MM-dd HH:mm:ss")
    public Date getCorporationCreateDate() {
        return corporationCreateDate;
    }

    public void setCorporationCreateDate(Date corporationCreateDate) {
        this.corporationCreateDate = corporationCreateDate;
    }

    @Length (min = 0, max = 50, message = "公司法人名称长度必须介于 0 和 50 之间")
    public String getCorporationCorporateName() {
        return corporationCorporateName;
    }

    public void setCorporationCorporateName(String corporationCorporateName) {
        if(null!=corporationCorporateName&&corporationCorporateName.length()>50){
            this.corporationCorporateName = corporationCorporateName.substring(0,50);
        }else{
            this.corporationCorporateName = corporationCorporateName;
        }
    }

    @Length (min = 0, max = 4, message = "公司法人性别长度必须介于 0 和 4 之间")
    public String getCorporationCorporateSex() {
        return corporationCorporateSex;
    }

    public void setCorporationCorporateSex(String corporationCorporateSex) {
        this.corporationCorporateSex = corporationCorporateSex;
    }

    @Length (min = 0, max = 50, message = "公司传真长度必须介于 0 和 50 之间")
    public String getCorporationFax() {
        return corporationFax;
    }

    public void setCorporationFax(String corporationFax) {
        if(null!=corporationFax&&corporationFax.length()>50){
            this.corporationFax = corporationFax.substring(0,50);
        }else{
            this.corporationFax = corporationFax;
        }
    }

    @Length (min = 0, max = 500, message = "公司介绍长度必须介于 0 和 500 之间")
    public String getCorporationIntroduction() {
        return corporationIntroduction;
    }

    public void setCorporationIntroduction(String corporationIntroduction) {
        if(null!=corporationIntroduction&&corporationIntroduction.length()>500){
            this.corporationIntroduction = corporationIntroduction.substring(0,500);
        }else{
            this.corporationIntroduction = corporationIntroduction;
        }
    }

    @Length (min = 0, max = 50, message = "公司经营模式长度必须介于 0 和 50 之间")
    public String getCorporationBusinessModel() {
        return corporationBusinessModel;
    }

    public void setCorporationBusinessModel(String corporationBusinessModel) {
        if(null!=corporationBusinessModel&&corporationBusinessModel.length()>50){
            this.corporationBusinessModel = corporationBusinessModel.substring(0,50);
        }else{
            this.corporationBusinessModel = corporationBusinessModel;
        }
    }

    @Length (min = 0, max = 50, message = "公司注册资金长度必须介于 0 和 50 之间")
    public String getCorporationRegisterFunds() {
        return corporationRegisterFunds;
    }

    public void setCorporationRegisterFunds(String corporationRegisterFunds) {
        if(null!=corporationRegisterFunds&&corporationRegisterFunds.length()>50){
            this.corporationRegisterFunds = corporationRegisterFunds.substring(0,50);
        }else{
            this.corporationRegisterFunds = corporationRegisterFunds;
        }
    }

    @Length (min = 0, max = 100, message = "公司注册地址长度必须介于 0 和 100 之间")
    public String getCorporationRegisterAddress() {
        return corporationRegisterAddress;
    }

    public void setCorporationRegisterAddress(String corporationRegisterAddress) {
        if(null!=corporationRegisterAddress&&corporationRegisterAddress.length()>100){
            this.corporationRegisterAddress = corporationRegisterAddress.substring(0,100);
        }else{
            this.corporationRegisterAddress = corporationRegisterAddress;
        }
    }

    @Length (min = 0, max = 50, message = "公司员工人数长度必须介于 0 和 50 之间")
    public String getCorporationStaffNum() {
        return corporationStaffNum;
    }

    public void setCorporationStaffNum(String corporationStaffNum) {
        if(null!=corporationStaffNum&&corporationStaffNum.length()>50){
            this.corporationStaffNum = corporationStaffNum.substring(0,50);
        }else{
            this.corporationStaffNum = corporationStaffNum;
        }
    }

    @Length (min = 0, max = 50, message = "公司质量体系长度必须介于 0 和 50 之间")
    public String getCorporationQualitySystem() {
        return corporationQualitySystem;
    }

    public void setCorporationQualitySystem(String corporationQualitySystem) {
        if(null!=corporationQualitySystem&&corporationQualitySystem.length()>50){
            this.corporationQualitySystem = corporationQualitySystem.substring(0,50);
        }else{
            this.corporationQualitySystem = corporationQualitySystem;
        }
    }

    @Length (min = 0, max = 50, message = "公司企业类型长度必须介于 0 和 50 之间")
    public String getCorporationEnterpriseType() {
        return corporationEnterpriseType;
    }

    public void setCorporationEnterpriseType(String corporationEnterpriseType) {
        if(null!=corporationEnterpriseType&&corporationEnterpriseType.length()>50){
            this.corporationEnterpriseType = corporationEnterpriseType.substring(0,50);
        }else{
            this.corporationEnterpriseType = corporationEnterpriseType;
        }
    }

    @Length (min = 0, max = 32, message = "省市长度必须介于 0 和 32 之间")
    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }
}
